package org.neuedu.ssmp.crm.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.neuedu.ssmp.crm.entity.Chances;
import org.neuedu.ssmp.crm.entity.ChancesPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MoonHolder
 * @since 2019-12-09
 */
public interface ChancesPlanMapper extends BaseMapper<ChancesPlan> {

    @Select("select s.id,plan_time,plan_name,effect from chances_plan s join chances a on s.chances_id=a.id where a.id=#{id}")
    List<ChancesPlan> chance(Integer id);

}
